package cn.dm.controller;

import cn.dm.client.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private UserFeignClient userFeignClient;




    @RequestMapping("/login")
    public String login() {
        return userFeignClient.login();
    }





    @RequestMapping("/login2")
    public String login2() {
        return userFeignClient.login();
    }




}

